const path = require('path')
const webpack = require('webpack')

function resolve (dir) {
  return path.join(__dirname, dir)
}

const vueConfig = {
  runtimeCompiler: true,
  configureWebpack: (config) => {
    config["performance"] = {
      "maxEntrypointSize": 10000000,
      "maxAssetSize": 30000000,
    }
  },
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
}

module.exports = vueConfig